package com.sunday.common.widgets.span;

import android.text.TextPaint;
import android.text.style.ClickableSpan;

/**
 * Created by Administrator on 2016/6/13.
 */

public abstract  class NoUnderLineSpan extends ClickableSpan {

    private Object tag;  //用来保存临时变量
    /**
     * Makes the text underlined and in the link color.
     */
    @Override
    public void updateDrawState(TextPaint ds) {
        ds.setColor(ds.linkColor);
        ds.setUnderlineText(false);
    }

    public Object getTag() {
        return tag;
    }

    public void setTag(Object tag) {
        this.tag = tag;
    }
}
